package com.dhy.service;

import com.dhy.pojo.Department;
import com.dhy.pojo.Employee;
import com.dhy.query.BaseQuery;
import com.dhy.query.DepartmentQuery;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IBaseService<T> {

//    @Transactional
    void insert(T t);

//    @Transactional
    void deleteById(Long id);

//    @Transactional
    void update(T t);

    T selectById(Long id);

    Long selectPageSize();

    List<T> selectLimit(BaseQuery baseQuery);

    List<T> selectAll();

    Long deleteByIds( List<Long> lists);
}
